-
Notifications
You must be signed in to change notification settings - Fork 774
define the interface of seed #1286
define the interface of seed #1286
Conversation
lgtm! |
e52d6c2
to
f3603eb
Compare
f3603eb
to
806439f
Compare
Codecov Report
@@ Coverage Diff @@
## master #1286 +/- ##
=======================================
Coverage 49.73% 49.73%
=======================================
Files 120 120
Lines 7938 7938
=======================================
Hits 3948 3948
Misses 3666 3666
Partials 324 324 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The taskID
is not in the BaseInfo
, should it be contained?
// Seed describes the seed file which represents the resource file defined by taskUrl. | ||
type Seed interface { | ||
// Prefetch will start to download seed file to local cache. | ||
Prefetch(perDownloadSize int64) (<-chan struct{}, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the meaning of perDownloadSize
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when a seed prefetch,perDownloadSize
is the maximum size of concurrent downloading for a seed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add taskID in BaseInfo.
Signed-off-by: allen.wq <allen.wq@alipay.com>
5e75582
to
cb47003
Compare
Add it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Jim Ma <majinjing3@gmail.com>
Signed-off-by: allen.wq allen.wq@alipay.com
Ⅰ. Describe what this PR did
define the seed interface. See #1284.
Ⅱ. Does this pull request fix one issue?
NONE.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
No need.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews